﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001099 RID: 4249
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueWorkbenchSelectFuncScRsp : IMessage<RogueWorkbenchSelectFuncScRsp>, IMessage, IEquatable<RogueWorkbenchSelectFuncScRsp>, IDeepCloneable<RogueWorkbenchSelectFuncScRsp>, IBufferMessage
	{
		// Token: 0x17003599 RID: 13721
		// (get) Token: 0x0600BDBA RID: 48570 RVA: 0x001FFA1B File Offset: 0x001FDC1B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueWorkbenchSelectFuncScRsp> Parser
		{
			get
			{
				return RogueWorkbenchSelectFuncScRsp._parser;
			}
		}

		// Token: 0x1700359A RID: 13722
		// (get) Token: 0x0600BDBB RID: 48571 RVA: 0x001FFA22 File Offset: 0x001FDC22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueWorkbenchSelectFuncScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700359B RID: 13723
		// (get) Token: 0x0600BDBC RID: 48572 RVA: 0x001FFA34 File Offset: 0x001FDC34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueWorkbenchSelectFuncScRsp.Descriptor;
			}
		}

		// Token: 0x0600BDBD RID: 48573 RVA: 0x001FFA3B File Offset: 0x001FDC3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchSelectFuncScRsp()
		{
		}

		// Token: 0x0600BDBE RID: 48574 RVA: 0x001FFA44 File Offset: 0x001FDC44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchSelectFuncScRsp(RogueWorkbenchSelectFuncScRsp other) : this()
		{
			this.targetFuncInfo_ = ((other.targetFuncInfo_ != null) ? other.targetFuncInfo_.Clone() : null);
			this.workbenchFuncId_ = other.workbenchFuncId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BDBF RID: 48575 RVA: 0x001FFA9C File Offset: 0x001FDC9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchSelectFuncScRsp Clone()
		{
			return new RogueWorkbenchSelectFuncScRsp(this);
		}

		// Token: 0x1700359C RID: 13724
		// (get) Token: 0x0600BDC0 RID: 48576 RVA: 0x001FFAA4 File Offset: 0x001FDCA4
		// (set) Token: 0x0600BDC1 RID: 48577 RVA: 0x001FFAAC File Offset: 0x001FDCAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchFuncInfo TargetFuncInfo
		{
			get
			{
				return this.targetFuncInfo_;
			}
			set
			{
				this.targetFuncInfo_ = value;
			}
		}

		// Token: 0x1700359D RID: 13725
		// (get) Token: 0x0600BDC2 RID: 48578 RVA: 0x001FFAB5 File Offset: 0x001FDCB5
		// (set) Token: 0x0600BDC3 RID: 48579 RVA: 0x001FFABD File Offset: 0x001FDCBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorkbenchFuncId
		{
			get
			{
				return this.workbenchFuncId_;
			}
			set
			{
				this.workbenchFuncId_ = value;
			}
		}

		// Token: 0x1700359E RID: 13726
		// (get) Token: 0x0600BDC4 RID: 48580 RVA: 0x001FFAC6 File Offset: 0x001FDCC6
		// (set) Token: 0x0600BDC5 RID: 48581 RVA: 0x001FFACE File Offset: 0x001FDCCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BDC6 RID: 48582 RVA: 0x001FFAD7 File Offset: 0x001FDCD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueWorkbenchSelectFuncScRsp);
		}

		// Token: 0x0600BDC7 RID: 48583 RVA: 0x001FFAE8 File Offset: 0x001FDCE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueWorkbenchSelectFuncScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.TargetFuncInfo, other.TargetFuncInfo) && this.WorkbenchFuncId == other.WorkbenchFuncId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BDC8 RID: 48584 RVA: 0x001FFB48 File Offset: 0x001FDD48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.targetFuncInfo_ != null)
			{
				num ^= this.TargetFuncInfo.GetHashCode();
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num ^= this.WorkbenchFuncId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BDC9 RID: 48585 RVA: 0x001FFBB6 File Offset: 0x001FDDB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BDCA RID: 48586 RVA: 0x001FFBBE File Offset: 0x001FDDBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BDCB RID: 48587 RVA: 0x001FFBC8 File Offset: 0x001FDDC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.targetFuncInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.TargetFuncInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this.WorkbenchFuncId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.WorkbenchFuncId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BDCC RID: 48588 RVA: 0x001FFC40 File Offset: 0x001FDE40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.targetFuncInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TargetFuncInfo);
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorkbenchFuncId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BDCD RID: 48589 RVA: 0x001FFCB0 File Offset: 0x001FDEB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueWorkbenchSelectFuncScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.targetFuncInfo_ != null)
			{
				if (this.targetFuncInfo_ == null)
				{
					this.TargetFuncInfo = new WorkbenchFuncInfo();
				}
				this.TargetFuncInfo.MergeFrom(other.TargetFuncInfo);
			}
			if (other.WorkbenchFuncId != 0U)
			{
				this.WorkbenchFuncId = other.WorkbenchFuncId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BDCE RID: 48590 RVA: 0x001FFD2C File Offset: 0x001FDF2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BDCF RID: 48591 RVA: 0x001FFD38 File Offset: 0x001FDF38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 72U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.WorkbenchFuncId = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.targetFuncInfo_ == null)
					{
						this.TargetFuncInfo = new WorkbenchFuncInfo();
					}
					input.ReadMessage(this.TargetFuncInfo);
				}
			}
		}

		// Token: 0x04004C5B RID: 19547
		private static readonly MessageParser<RogueWorkbenchSelectFuncScRsp> _parser = new MessageParser<RogueWorkbenchSelectFuncScRsp>(() => new RogueWorkbenchSelectFuncScRsp());

		// Token: 0x04004C5C RID: 19548
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C5D RID: 19549
		public const int TargetFuncInfoFieldNumber = 7;

		// Token: 0x04004C5E RID: 19550
		private WorkbenchFuncInfo targetFuncInfo_;

		// Token: 0x04004C5F RID: 19551
		public const int WorkbenchFuncIdFieldNumber = 15;

		// Token: 0x04004C60 RID: 19552
		private uint workbenchFuncId_;

		// Token: 0x04004C61 RID: 19553
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04004C62 RID: 19554
		private uint retcode_;
	}
}
